/*
 * @Description: Description
 * @Author': xuqinyang'
 * @Date: 2022-12-26 15:22:03
 * @LastEditors: xuqinyang
 * @LastEditTime: 2022-12-26 16:51:28
 */
import request from '@/utils/request'

// 查询任务列表
export function queryTaskList(params) {
    return request({
        url: '/admin/wecom/group/chat/list',
        method: 'get',
        params
    })
}

// 获取用户详细信息
export function getInfo() {
    return request({
        url: '/system/user/getInfo',
        method: 'get',
    });
}

// 查询群主
export function getGroupmaster(data) {
    return request({
        url: '/admin/permission',
        method: 'post',
        data
    });
}


// 获取客户详情
export function checkOrUpdateTask(params) {
    return request({
        url: '/admin/wecom/group/chat/chatDetail/' + params.chatId,
        method: 'get',
    })
}

//查询头部计数值
export function findCountTotal(params) {
  return request({
    url: '/admin/wecom/group/chat/findCountTotal',
    method: 'get',
    params
  })
}

//查询群主枚举值
export function findOwnerList(params) {
  return request({
    url: '/admin/wecom/group/chat/findOwnerList',
    method: 'get',
    params
  })
}

//企微群打标签
export function makeGroupTag(data) {
  return request({
    url: '/admin/wecom/group/chat/makeGroupTag',
    method: 'post',
    data
  });
}

//查询群成员
export function messagerecord(params) {
  return request({
    url: '/admin/messagerecord/members',
    method: 'get',
    params
  })
}

//查询退群成员数据
export function findLossMemberList(params) {
  return request({
    url: '/admin/wecom/group/chat/findLossMemberList',
    method: 'get',
    params
  })
}

//详情编辑标签
export function editGroupTag(data) {
  return request({
    url: '/admin/wecom/group/chat/editGroupTag',
    method: 'post',
    data
  });
}

//查询标签数据
export function queryTags(params) {
  return request({
    url: '/admin/wecom/group/chat/queryTags',
    method: 'get',
    params
  })
}

// 查询超级企微下的群聊
export function queryQYGroup(data) {
  return request({
    url: '/admin/group/sop/ownerChat',
    method: 'post',
    data
  });
}
